package com.javalab._6feature._4exception;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

/**
 * 用来声明方法可能会抛出异常
 */
public class _2Throws {

    public static void main(String[] args) throws FileNotFoundException{
        readFile();
    }

    public static  void readFile() throws FileNotFoundException {
        InputStream is = new FileInputStream("./1.txt");
    }
}
